import request from '@/utils/request'

const api_name = `/api/user`

export default {
    login(userInfo) {
        return request({
            url: `${api_name}/login`,
            method: `post`,
            data: userInfo
        })
    },
   //获取用户信息接口
    getUserInfo() {
     return request({
     url: `${api_name}/auth/getUserInfo`,
     method: `get` 
 })
},	
   //用户认证接口
   saveUserAuah(userAuth) {
     return request({
     url: `${api_name}/auth/userAuth`,
     method: 'post',
     data: userAuth
   })
 }
}